﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Carbon.Web.Forms.Controls
{
    public class FileUploadCollectionEditor : CollectionEditor
    {
        protected override void OnRemove(CollectionEditorRemoveEventArgs args)
        {
            FileReference fileReference = (FileReference)args.Item;
            base.OnRemove(args);

            FormsContext.Current.PersistanceService.FreeFile(fileReference);
        }
    }
}
